package com.dingup.provider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@ImportResource(locations = "classpath*:applicationContext.xml")
@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
@EnableTransactionManagement // 启注解事务管理，等同于xml配置方式的 <tx:annotation-driven />
//@ComponentScan({"com.dingup.provider.redis","com.dingup.provider"})
@EnableAsync
@MapperScan(basePackages = "com.dingup.provider.mapper")
@EnableAspectJAutoProxy
@EnableScheduling
@EnableFeignClients
public class DingupProviderInnermgrwebApplication {

	public static void main(String[] args) {
		SpringApplication.run(DingupProviderInnermgrwebApplication.class, args);
	}
}
